package com.wenx.v3system.modular.cloud.domain.maps;

import com.wenx.v3system.modular.cloud.domain.dto.SysPermissionDto;
import com.wenx.v3system.modular.cloud.domain.po.SysPermission;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface SysPermissionMap {

    SysPermissionMap INSTANCE = Mappers.getMapper(SysPermissionMap.class);

    SysPermission toPo(SysPermissionDto dto);
    
    SysPermissionDto toDto(SysPermission po);
    
    List<SysPermission> toPoList(List<SysPermissionDto> dtoList);
    
    List<SysPermissionDto> toDtoList(List<SysPermission> poList);
}